module ToolHelper
  def beginning_of_today
    @beginning_of_today ||= Date.today.beginning_of_day
  end

  def beginning_of_week
    @beginning_of_week ||= Date.today.beginning_of_week.beginning_of_day
  end

  def beginning_of_month
    @beginning_of_month ||= Date.today.beginning_of_month.beginning_of_day
  end

  def beginning_of_year
    @beginning_of_year ||= Date.today.beginning_of_year.beginning_of_day
  end
end